<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="Damon">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="css/fault.css">
</head>
<script type="text/javascript">
	function addfaultRecord(){
		mdiv = document.getElementById("profile");
		if (profile.fname.value == "") {
			alert("故障名不能为空！");
			profile.fname.focus();
			return ;
		}
		if (profile.happentime.value == "") {
			alert("发生时间不能为空！");
			profile.happentime.focus();
			return ;
		}
		if (profile.phone.value == "") {
			alert("电话不能为空！");
			profile.phone.focus();
			return ;
		}
		if (profile.symptom.value == "") {
			alert("故障现象不能为空！");
			profile.symptom.focus();
			return ;
		}


		if (confirm('确定记录')) {
			document.profile.action = "addNewFaultRecordAction.action";
			document.profile.submit();
		}else{
			return false;
		}
	}
</script>
<body>
	<div class="setting-detail" id="stthld" style="display:block;">
		<div class="detail-bg"></div>
		<div class="plzhld clearfix">
			<div class="mod-setting-profile" id="100001" style="display:block;">
				<div class="setting-profile-title yahei">
					新故障记录
					<div style="float:right;padding-right: 20px;">
						<input type="button" onclick="javasrcipt:history.go(-1)"
							value="返回" />
					</div>
					<div style="float:right;padding-right: 50px;">
						<input type="button" onclick="addfaultRecord()"
							value="记录" />
					</div>
				</div>
					<form id="profile" name="profile" class="setting-profile-form" method="post">
					<table style="width:1094px;">
						<!-- 大table包含左右两个table -->
						<tr>
							<td>
								<table style="wdith:546px;">
									<tr>
										<th>故障编号：</th>
										<td><input class="INPUTSTYLE1" type="text"
											placeholder="新故障编号由数据库给定，不需填写..."
											readonly="readonly" />
										</td>
									</tr>
									<tr>
									<tr>
										<th>事件名称：</th>
										<td><input class="INPUTSTYLE1" type="text"	name="eventname"
											placeholder="输入15位以内的事件名称" />
										</td>
									</tr>
									<tr>
										<th>故障名：</th>
										<td><input class="INPUTSTYLE1" type="text"
											placeholder="输入故障名"
											name="fname" />
										</td>
									</tr>
									<tr>
										<th>记录人编号：</th>
										<td><input class="INPUTSTYLE1" type="text"
											readonly="readonly"
											value="<s:property value="#session.user.id"/>" 
											name="userid" />
										</td>
									</tr>
									<tr>
										<th>发生时间：</th>
										<td><input class="INPUTSTYLE1" type="date"
											name="happentime"></input>
										</td>
									</tr>
									<tr>
										<th>报故障处电话：</th>
										<td><input type="text" class="INPUTSTYLE1" name="phone"
											placeholder="输入11位以内的数字号码" />
										</td>
									</tr>
									<tr>
										<th>是否已处理：</th>
										<td><input type="radio" value="1" name="markdeal"
											checked="checked">是 <input type="radio" value="2"
											name="markdeal" />否</td>
									</tr>
<%-- 									<s:hidden label="报故障处IP" type="text" name="fip"
										value="<s:property value="#request.getRemoteAddr()"/>"></s:hidden> --%>
									<tr>
										<th>故障现象：</th>
										<td><textarea name="symptom" placeholder="输入150字以内的故障现象"
												class="fault-nomal1"></textarea></td>
									</tr>
								</table></td>
	 							<td>
								<table style="wdith:546px;">
									<tr>
										<th>所属业务：</th>
										<td><select name="serve"
											style="display:block;">
												<option value="核心网">核心网</option>
												<option value="无线侧">无线侧</option>
												<option value="网管">网管</option>
												<option value="终端">终端</option>
										</select>
										</td>
									</tr>
									<tr>
										<th>处理结果：</th>
										<td><textarea name="results" placeholder="输入150字以内的处理故障措施" class="fault-nomal2"></textarea>
										</td>
									</tr>
									<tr>
										<th>故障分析：</th>
										<td><textarea name="analyse" placeholder="输入250字以内的故障分析过程" class="fault-nomal2"></textarea>
										</td>
									</tr>
									<tr>
										<th>改进措施：</th>
										<td><textarea name="measure" placeholder="输入250字以内的故障改进措施" class="fault-nomal2"></textarea>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
		
	</div>
</body>
</html>
